package com.qqhf.hitfood.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qqhf.hitfood.bean.vo.FoodTypeSales;
import com.qqhf.hitfood.bean.entity.BizOrderFood;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.cache.decorators.ScheduledCache;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Mapper
@Transactional(rollbackFor = Exception.class)
@CacheNamespace(eviction = ScheduledCache.class, blocking = true, flushInterval = 60 * 1000)
public interface BizOrderFoodMapper extends BaseMapper<BizOrderFood> {
    List<FoodTypeSales> getFoodTypeSales(String st, String end);
}
